package extends1;

import java.util.Arrays;

/**
 * super可以找到爷爷辈
 */
public class demo3 {
    public static void main(String[] args) {
//        B3 b3 = new B3();
//        b3.say();
        Object objPri = new Integer[5];
        Integer[] nums = (Integer[]) objPri;
        System.out.println(Arrays.toString(nums));
    }
}
class BaseA3{
    public void say(){
        System.out.println("BaseA3 say()...");
    }
}
class A3 extends BaseA3{
//    public void say(){
//        System.out.println("A3 say()...");
//    }
}
class B3 extends A3{
//    public void say(){
//        super.say();
//        System.out.println("B3 say()...");
//    }
}
